
export const getLocation = () => window.location

// 获取查询参数
export const getQuery = (search = getLocation().href.split('?')[1]) => search ? search.split('&').map(item => item.split('=')).reduce((a, b) => b[1] ? (a[b[0]] = b[1]) && a : (a[b[0]] = b[1]) || a, {}) : {}
